// 面经相关的请求，放到这里
import request from '@/utils/request'

// 1.分页获取面经列表数据
export const ArtcleListAPI = params => {
  return request.get('/admin/interview/query', { params })
}

// 2、添加面经
export const addArticleAPI = data => {
  return request.post('/admin/interview/create', data)
}

// 3、删除面经
export const deleteAricleAPI = id => {
  return request.delete('/admin/interview/remove', { data: { id } })
}

// 4、获取单个面经详情
export const articleAPI = id => {
  return request.get('/admin/interview/show', { params: { id } })
}

// 5、修改面经
export const updateArticleAPI = data => {
  return request.put('/admin/interview/update', data)
}
